/**  
 * All rights Reserved, Designed By www.tydic.com
 * @Title:  RedisController.java   
 * @Package com.taotao.rest.controller   
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: axin     
 * @date:   2019年1月9日 下午10:19:20   
 * @version V1.0 
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
package com.taotao.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.rest.service.RedisService;

/**   
 * @Description: 缓存同步Controller 
 * @ClassName:  RedisController
 * @author:  Axin 
 * @date:   2019年1月9日 下午10:19:20   
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
@Controller
@RequestMapping("/cache/sync")
public class RedisController {

	
	@Autowired
	private RedisService redisService;
	
	@RequestMapping("/content/{contentCid}")
	@ResponseBody
	public TaotaoResult contentCacheSync(@PathVariable Long contentCid
			){
		TaotaoResult result = this.redisService.syncContent(contentCid);
		return result;
	}
	
	
}
